package com.yunzhong.appointment.mapper;

import com.yunzhong.appointment.util.PageData;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.yunzhong.appointment.entity.Hospital;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalMapper {
    int deleteByPrimaryKey(String hostipalId);

    int insert(Hospital record);

    int insertSelective(Hospital record);

    Hospital selectByPrimaryKey(String hostipalId);

    int updateByPrimaryKeySelective(Hospital record);

    int updateByPrimaryKey(Hospital record);
    /**
     * 
     * @methodName getHospital
     * @description 查询医院信息
     * @author 石洪刚
     * @time 2017年11月8日 下午2:10:04
     * @return
     */
    @Select("select hospital_id, hospital_name, hospital_info, hospital_pic from hospital")
    @ResultMap("BaseResultMap")
	Hospital getHospital();

    /**
     * 王仁海
     * @param pd
     * @return 医院简介查询
     */
    List<Hospital> queryHostipal(PageData pd);
}